const debonce = (fn, timeOut) => {
  clearTimeout(debonce.timeId)
  debonce.timeId = setTimeout(fn, timeOut)
}

export default debonce
